const rules = {
  name: {
    required: true,
    trim:true,
    maxLength: 100,
    aliasName: '商品名称'
  },
  sn: {
    trim:true,
    maxLength: 60,
    aliasName: '序列号'
  },
  sort: {
    int: true,
    default: 0,
    aliasName: '排序'
  },
  keyword: {
    trim:true,
    maxLength: 100,
    aliasName: '搜索关键字'
  },
  describe: {
    trim:true,
    maxLength: 200,
    aliasName: '描述'
  },
  remark: {
    trim:true,
    maxLength: 200,
    aliasName: '注意事项'
  }
}
module.exports = class extends think.Logic {
  postAction () {
    this.rules = rules
  }
  putAction () {
    this.rules = rules
  }
	categoryManufacturerAction() {
  	this.allowMethods = 'get'
	}
	goodsForNameAction () {
		this.allowMethods = 'get'
	}
};
